package com.nhutcm.sms.Utils;

import java.util.Timer;

import android.app.Application;
import android.content.Context;

public class AppApplication extends Application {

	private static AppApplication instance;

	public AppApplication() {
	};

	public static AppApplication getInstance(Context c) {
		if (instance == null) {
			instance = (AppApplication) c.getApplicationContext();
		}
		return instance;
	}

	public Context getCurrentCtx() {
		return CurrentCtx;
	}

	public void setCurrentCtx(Context currentCtx) {
		CurrentCtx = currentCtx;
	}

	public Timer getTimer() {
		return timer;
	}

	public void setTimer(Timer timer) {
		this.timer = timer;
	}

	private Context CurrentCtx;

	private Timer timer;

}
